/*
 * Copyright (C) 2008 GeoScheduler Team, as stated on <http://www.geoscheduler.org/authors>.
 * 
 * This file is part of GeoScheduler.
 * 
 * GeoScheduler is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * GeoScheduler is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with GeoScheduler. If not, see <http://www.gnu.org/licenses/>.
 */
package org.geoscheduler.model;

import org.geoscheduler.commons.marshaller.JSONField;

/**
 * <h2>AccountLocation</h2>
 * <p>
 * Entity type for locations of account
 * </p>
 * 
 * @author lko
 */
public class AccountLocation extends VersionedEntity {

	private Long id;
	private Long idAccount;
	private String name;
	private int lon;
	private int lat;
	private int radius;

	public AccountLocation() {
		super();
	}

	public AccountLocation(Long id, Long idAccount, String name, int lon, int lat, int radius) {
		super();
		this.id = id;
		this.idAccount = idAccount;
		this.name = name;
		this.lon = lon;
		this.lat = lat;
		this.radius = radius;
	}

	@JSONField
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@JSONField
	public Long getIdAccount() {
		return idAccount;
	}

	public void setIdAccount(Long idAccount) {
		this.idAccount = idAccount;
	}

	@JSONField
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@JSONField
	public int getLon() {
		return lon;
	}

	public void setLon(int lon) {
		this.lon = lon;
	}

	public int getLat() {
		return lat;
	}

	public void setLat(int lat) {
		this.lat = lat;
	}

	public int getRadius() {
		return radius;
	}

	public void setRadius(int radius) {
		this.radius = radius;
	}
}
